package org.niu.str;

import java.util.Arrays;

public class IsPalindrome {
    public boolean isPalindrome (int x) {
        // write code here
        String s1 = String.valueOf(x);;
        int i = 0,j = s1.length()-1;
        while (i<=j){
            if(s1.charAt(i)!=s1.charAt(j)){
                return false;
            }
            i++;
            j--;
        }
        return true;

    }
}
